import request from '@/utils/request'

// 查询DispatchList列表
export function listDispatchList(query) {
  return request({
    url: '/business/DispatchList/list',
    method: 'get',
    params: query
  })
}

// 查询DispatchList详细
export function getDispatchList(dlid) {
  return request({
    url: '/business/DispatchList/' + dlid,
    method: 'get'
  })
}

export function getCdlcode() {
  return request({
    url: '/business/DispatchList/cdlcode',
    method: 'get'
  })
}
// 新增DispatchList
export function addDispatchList(data) {
  return request({
    url: '/business/DispatchList',
    method: 'post',
    data: data
  })
}

// 修改DispatchList
export function updateDispatchList(data) {
  return request({
    url: '/business/DispatchList',
    method: 'put',
    data: data
  })
}

// 删除DispatchList
export function delDispatchList(dlid) {
  return request({
    url: '/business/DispatchList/' + dlid,
    method: 'delete'
  })
}

// 导出DispatchList
export function exportDispatchList(query) {
  return request({
    url: '/business/DispatchList/export',
    method: 'get',
    params: query
  })
}
